package com.sc.sc250601.cook.service.impl;

import com.sc.sc250601.cook.mapper.SnackMapper;
import com.sc.sc250601.cook.pojo.SalesRankDTO;
import com.sc.sc250601.cook.pojo.Snack;
import com.sc.sc250601.cook.service.SnackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SnackServiceImpl implements SnackService {

    @Autowired
    private SnackMapper snackMapper;

    @Override
    public List<Snack> dayNew() {

        return snackMapper.dayNew();
    }

    @Override
    public List<SalesRankDTO> weekTop() {
        return snackMapper.weekTop();
    }
}
